#include <stdio.h>
#include <string.h>

typedef struct {
    char title[50];
    char author[50];
    char subject[100];
    int book_id;
}Book;

// struct BOOK{
//     char title[50];
//     char author[50];
//     char subject[100];
//     int book_id;
// }Books_t;

// void printBook(struct BOOK *book){

//     strcpy(book->author, "Jack_Tang");
//     printf("Book title : %s\n", book->title);
//     printf("Book author : %s\n", book->author);
//     printf("Book subject : %s\n", book->subject);
// }

void printBook(Book *book){

    strcpy(book->author, "Jack_Tang");
    printf("Book title : %s\n", book->title);
    printf("Book author : %s\n", book->author);
    printf("Book subject : %s\n", book->subject);
}

int main(void)
{
    // struct BOOK Books_t;
    Book Books_t;

    strcpy(Books_t.title, "C Programming");
    strcpy(Books_t.author, "Nuha Ali");
    strcpy(Books_t.subject, "12");
    
    printBook(&Books_t);
    printf("Book id : %d\n", Books_t.book_id);

    return 0;
}